KVCache

interface KVCache<K, V> : StandardKeyValueRepo<K, V>

Functions

contains
Link copied to clipboard
common
abstract suspend fun contains(key: K): Boolean
count
Link copied to clipboard
common
abstract suspend fun count(): Long
get
Link copied to clipboard
common
abstract suspend fun get(k: K): V?
keys
Link copied to clipboard
common
abstract suspend fun keys(pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
abstract suspend fun keys(v: V, pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
set
Link copied to clipboard
common
abstract suspend fun set(toSet: Map<K, V>)
unset
Link copied to clipboard
common
abstract suspend fun unset(toUnset: List<K>)
unsetWithValues
Link copied to clipboard
common
open suspend override fun unsetWithValues(toUnset: List<V>)
values
Link copied to clipboard
common
abstract suspend fun values(pagination: Pagination, reversed: Boolean = false): PaginationResult<V>

Properties

onNewValue
Link copied to clipboard
common
abstract val onNewValue: Flow<Pair<K, V>>
onValueRemoved
Link copied to clipboard
common
abstract val onValueRemoved: Flow<K>

Inheritors

SimpleKVCache
Link copied to clipboard